const Koa = require('koa')
const koaBody = require('koa-bodyparser')
const cors = require('koa2-cors')
const app = new Koa()
const UserRouter = require('./router/user')


app.use(koaBody())
app.use(cors())
app.use(UserRouter.routes(), UserRouter.allowedMethods())

app.listen(3000, () => {
  console.log('3000 port')
})